package com.zmn.oms.persistence.interfaces.commentextend;

import com.zmn.oms.model.entity.comment.OrderCommentExtend;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface OrderCommentExtendDao {

    /**
     * 根据订单id查询订单评价信息
     * @param orderIdList 订单Id集合
     * @return 评价信息
     */
    List<OrderCommentExtend> listOrderCommentExtendByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

    /**
     * 修改评价
     * @param orderCommentExtend
     * @return
     */
    int updateOrderCommentExtend(OrderCommentExtend orderCommentExtend);

    /**
     * 保存评价
     * @param orderCommentExtend
     */
    void insertOrderCommentExtend(OrderCommentExtend orderCommentExtend);

    /**
     * 追评
     * @param orderCommentExtend
     */
    void updateOrderCommentExtendAppend(OrderCommentExtend orderCommentExtend);

    /**
     * 修改用户id
     * @param orderIdSet
     * @param newUserId
     */
    void updateUserIdByOrderIds(@Param("orderIdSet") Set<Long> orderIdSet, @Param("newUserId") Long newUserId);
}